<?php
	function checkSessionVariable($sessionVar, $locationTrue, $locationFalse){
		if(!isset($_SESSION[$sessionVar])){
			header("Location: ".$locationTrue);
		}else{
			header("Location: ".$locationFalse);
		}
	}
?>